﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CommonLibrary
{
    public partial class BaseView : UserControl
    {
        /// <summary>
        /// 标题
        /// </summary>
        private string m_strTitle = String.Empty;

        public string Title
        {
            get { return m_strTitle; }
            set { m_strTitle = value; }
        }

        /// <summary>
        /// 父窗体
        /// </summary>
        public MainFrame ParentForm
        {
            get 
            { 
                return m_parentForm;
            }
            set
            {
                m_parentForm = value;
            }
        }

        private MainFrame m_parentForm = null;

        /// <summary>
        /// 当加载时触发事件
        /// </summary>
        public virtual void OnLoad()
        {
        }
    }
}


